<template>
  <div id="home">
    <router-view />
    <van-tabbar v-model="active" active-color="#EE9611">
      <van-tabbar-item to="/index">
        <span>首页</span>
        <template #icon>
          <i class="icon iconfont icon-shouye" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item>
        <span>分类</span>
        <template #icon>
          <i class="icon iconfont icon-classify-red" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item>
        <span>购物车</span>
        <template #icon>
          <i class="icon iconfont icon-gouwucheman" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/user">
        <span>个人</span>
        <template #icon>
          <i class="icon iconfont icon-geren" />
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      active: 0
    }
  }
}
</script>
